<div class="business-toolbar clearfix">
	<div class="title pull-left">关键交易</div>
	<div class="pull-right">
		{{view view.TimeRanges
			id="businessTimeRangesTopo"
			onChange="timeRangesChange"
			clickTimePoint=timePointLisenterEvent}}
		<div class="input-append">
			{{input class="input span3" value=keyWord placeholder="关键字"}}
			<button class="btn btn-primary" {{action "search"}}>查询</button>
		</div>
	</div>
</div>

<div class="apm-gridcontainer">
	{{view view.Grid
		columns=columns
		content=keyTrades
		allowPaging=true
		pageIndex=pageIndex
		pageSize=pageSize
		totalRows=totalRows
		allowSorting=true
		sorted="gridSorted"
		cellClicked="gridCellClicked"
		pageIndexChanged="pageIndexChanged"
		class="business-trade-grid"}}
</div>

{{#view view.Dialog
	id="set_trade"
	title="设置关键交易"
	class="hide"
	width=300
	height=250
	autoOpen=false
	modal=true
	resizable=false}}
	<div id="dialog"> 
		<div {{bind-attr class=":alert alertType formTip::hide"}}><strong>{{formTip}}</strong></div>
		<div class="control-group">
			<label class="business-nodedetail-trade-label">交易名称</label>
			<div class="controls">
				{{input class="input span2" tooltip="" value=tradeName}}
			</div>
		</div>
		<div class="control-group">
			<label class="business-nodedetail-trade-label">Apdex T</label>
			<div class="controls">
				{{input class="input span2" tooltip="" value=apdex_t}}（秒）
			</div>
		</div> 

		<div class="control-group">
			<div>
				<button type="submit" {{action "setTrade"}} class="btn business-nodedetail-trade-button">保存</button>
				<button type="button" {{action "closeDialog"}} class="btn">取消</button>
			</div>
		</div>
	</div>
{{/view}}

{{view view.ThresholdConfig
	id="businessConfigThresholdView"
	targetResource="节点"
	appId=business.id}}